import request from '@/router/axios';

//生产线
//生产车间列表
export const getList = (current, size,params) => {
  return request({
    url: '/api/hg-public/customerrelation/page',
    method: 'get',
    params: {
        current,
      size,
      ...params
    }
  })
}

//新增生产线
export const add = (row) => {
  return request({
    url: '/api/hg-public/customerrelation/save',
    method: 'post',
    data: row
  })
}

//删除生产线
export const remove = (ids) => {
  return request({
    url: '/api/hg-public/customerrelation/remove',
    method: 'post',
    params: {
      ids,
    }
  })
}

//更新生产线
export const update = (row) => {
  return request({
    url: '/api/hg-public/customerrelation/update',
    method: 'post',
    data: row
  })
}

export const detail = (id) => {
    return request({
      url: '/api/hg-public/customerrelation/detail',
      method: 'get',
      params: {
        id,
      }
    })
  }
